package com.szlanyou.cmc.controller;

import org.springframework.web.bind.annotation.*;

/**
 * @Author: ly-songpengfei
 * @Date: 2025/10/11 14:47
 * @Description:
 * @Version:
 */
@RestController
@RequestMapping("/user")
public class UserController {

    /**
     * @Description: 获取用户信息
     * @Author ly-songpengfei
     * @Date 2025/10/11 14:47
     * @param:
     * @Return String
     */
    @GetMapping("/add")
    public String getUser() {
        return "add success!";
    }

    /**
     * @Description: 修改用户信息
     * @Author ly-songpengfei
     * @Date 2025/10/11 14:47
     * @param:
     * @Return String
     */
    @PutMapping("/update")
    public String updateUser() {
        return "update success!";
    }

    /**
     * @Description: 删除用户信息
     * @Author ly-songpengfei
     * @Date 2025/10/11 14:47
     * @param:
     * @Return String
     */
    @DeleteMapping("/delete")
    public String deleteUser() {
        return "delete success!";
    }

    /**
     * @Description: 保存用户信息
     * @Author ly-songpengfei
     * @Date 2025/10/11 14:47
     * @param:
     * @Return String
     */
    @PostMapping("/save")
    public String saveUser() {
        return "save success!";
    }
}
